package library.http.annotations;

import android.support.annotation.Keep;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Http Certificate SRC
 */
@Keep
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SslTrust {

    /**
     * from resource id (raw)
     */
    int id() default 0;

    /**
     * from assets  : "path/ca.*"
     * from file    : "/path/ca.*"
     * from String  : Constance(.class).CA(static final String)
     * from url     : unSupported
     */
    String path() default "";

    String keyType();

    String managerType() default "X509";

    String pwd() default "";

}
